// 先导入request
import request from '@/utils/request'

// 封装登录方法
export const loginAPI = (data) => {
  return request.post('/auth/login', data)
}
// 获取用户数据
export const userAPI = () => {
  return request.get('/auth/currentUser')
}
// 获取用户一周数据来创建图表
export const lineAPI = () => {
  return request.get('/analysis/DailyVisitTrend')
}
